]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/entry: Add missing notify calls
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 9 Feb 2022 16:03:13 +0000 (17:03 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 10 Feb 2022 13:09:37 +0000 (13:09 +0000)
Whoops, at the moment changes of most properties are only notified
when going through g_object_set() and not when using the public
setters.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2168>

src/st/st-entry.c

index a8edb2de4d7606865877fff66b73f16ecfa86c2a..3a43504070c669e613007c96e11588f5e0db7008 100644 (file)
@@ -1170,6 +1170,7 @@ st_entry_set_hint_text (StEntry     *entry,
   st_widget_add_style_class_name (label, "hint-text");
 
   st_entry_set_hint_actor (ST_ENTRY (entry), CLUTTER_ACTOR (label));
+  g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_HINT_TEXT]);
 }
 
 /**
@@ -1358,6 +1359,7 @@ st_entry_set_primary_icon (StEntry      *entry,
   priv = st_entry_get_instance_private (entry);
 
   _st_entry_set_icon (entry, &priv->primary_icon, icon);
+  g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_PRIMARY_ICON]);
 }
 
 /**
@@ -1397,6 +1399,7 @@ st_entry_set_secondary_icon (StEntry      *entry,
   priv = st_entry_get_instance_private (entry);
 
   _st_entry_set_icon (entry, &priv->secondary_icon, icon);
+  g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_SECONDARY_ICON]);
 }
 
 /**
@@ -1448,6 +1451,7 @@ st_entry_set_hint_actor (StEntry      *entry,
     }
 
   st_entry_update_hint_visibility (entry);
+  g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_HINT_ACTOR]);
 
   clutter_actor_queue_relayout (CLUTTER_ACTOR (entry));
 }